package com.pattern.active;

/**
 * 使用自定义的代理
 */
public class UseJdkActiveProxy {
    public static void main(String[] args) {
        JdkProxyEx jdkProxyEx = new JdkProxyEx();
        //
        HelloActivePattern activePattern = (HelloActivePattern)jdkProxyEx.bindObject(new HelloActivePatternImpl());
        activePattern.sayActivePattern();
    }
}
